#include <iostream>
#include <bitset>
using namespace std;
int main()
{
	std::cout << "===========================" << std::endl;
	float myfloat1 = 16.5f;
	std::cout << myfloat1 << std::endl;
	std::cout << std::bitset<32>(*(unsigned long long*) & myfloat1) << std::endl;
	//01000001100001000000000000000000

	std::cout << "===========================" << std::endl;
	float n = 125.125;
	std::cout << n << std::endl;
	std::cout << std::bitset<32>(*(unsigned long long*) & n) << std::endl;
	// 01000010111110100100000000000000

	std::cout << "===========================" << std::endl;
	double m = 125.125;// 64 位双精度类型
	std::cout << m << std::endl;
	std::cout << std::bitset<64>(*(unsigned long long*) & m) << std::endl;
	// 0100000001011111010010000000000000000000000000000000000000000000
 
}